/*
 * Parser.h
 *
 *  Created on: 15.04.2012
 *      Author: Eugene Kornykhin
 */

#ifndef PARSER_H_
#define PARSER_H_

#include <istream>
#include <iostream>
#include "Poliz.h"
#include <map>

class Parser {
public:
	Parser();
	virtual ~Parser();

	void parse(std::istream &input = std::cin);

	std::map<std::string, int> getVars() const;
	const Poliz &getPoliz() const;
private:
	std::map<std::string, int> vars;
	Poliz poliz;
};

#endif /* PARSER_H_ */
